package org.djw.user.mapper;

import org.djw.basic.mapper.BaseMapper;
import org.djw.org.domain.Employee;
import org.djw.user.domain.User;

/**
 * 用户模块mapper层
 */
public interface UserMapper extends BaseMapper<User>{

    /**
     * 根据电话号码查询用户
     * @param phone
     * @return
     */
    User loadByphone(String phone);

    /**
     * 根据邮箱查询用户
     * @param email
     * @return
     */
    User loadByemail(String email);

    /**
     * 根据logininfo_id查询用户
     * @param id
     * @return
     */
    User loadByLogininfoId(Long id);
}

